package com.cvpoc.struts.form;

import java.util.List;

import org.apache.struts.action.ActionForm;

import com.cvpoc.dto.LangueDTO;

public class LangueForm extends ActionForm {
	private static final long serialVersionUID = -7034866306466265996L;
	
	private String libelle;
	private String niveau;
	private String pratique;
	private String commentaire;
	private List<LangueDTO> langueList;
	private String selectedItem;
	
	public LangueForm() {
		super();
	}

	public String getLibelle() {
		return libelle;
	}

	public void setLibelle(String libelle) {
		this.libelle = libelle;
	}
	
	public String getNiveau() {
		return niveau;
	}

	public void setNiveau(String niveau) {
		this.niveau = niveau;
	}	
	
	public String getPratique() {
		return pratique;
	}

	public void setPratique(String pratique) {
		this.pratique = pratique;
	}
	
	public String getCommentaire() {
		return commentaire;
	}

	public void setCommentaire(String commentaire) {
		this.commentaire = commentaire;
	}
	

    public List<LangueDTO> getLangueList() {
        return langueList;
    }

    public void setLangueList(List<LangueDTO> listeLangue) {
		this.langueList = listeLangue;
    }	
    
    public void setSelectedItem(String idSelected) {
    	this.selectedItem = idSelected;
    }
    
    public String getSelectedItem() {
    	return selectedItem;
    }
	
	/*
	@Override
	public ActionErrors validate(ActionMapping mapping,
	HttpServletRequest request) {
 
	   ActionErrors errors = new ActionErrors();
 
	    if( getLibelle() == null || ("".equals(getLibelle()))) {
	       errors.add("formationInitiale.libelle.obligatoire",
                         new ActionMessage("formationInitiale.libelle.obligatoire"));
	    }
 
	    return errors;
	}
	
	*/
	
}

